import { i18n } from "@/languages/index.ts";
const t = i18n.global.t;

/**
 * @description: 充值状态
 */
export const RechagreStatusMap: any = () => {
    return {
        '0': t('records_page_rechagreStatus0'),
        '-1': t('records_page_rechagreStatus_1'),
        '1': t('records_page_rechagreStatus1'),
        '2': t('records_page_rechagreStatus2'),
    }

}
/**
 * @description: 流水状态
 */
export const AuditStatusMap: any = () => {
    return {

        '0': t('rechargeRecord_page_allState'),
        '1': t('records_page_auditStatus_1'),
        '2': t('records_page_auditStatus_2'),

    }

}


/**
 * @description: 取款状态
 */

export const WithdrawStatusMap: any = () => {
    return {
        '1': t('records_page_withdrawStatus1'),
        '2': t('records_page_withdrawStatus2'),
        '3': t('records_page_withdrawStatus3'),
        '4': t('records_page_withdrawStatus4'),

    }
}

export const WithdrawStatusColorMap: any = {
    '0': '#FABB2D',
    '1': '#FABB2D',
    '2': '#80FF44',
    '3': '#FF2424',
}


/**
 * @description: 代理账变类型
 */

export const ProxyAccountTypeMap: any = () => {
    return {
        '0': t('accountsRecord_page_allType'),
        '1': t('mine_withdraw'),
        '2': t('Transfer'),
    }

}


/**
 * @description: 转账类型
 */
export const AccountTypeMap: any = {
    '80': t('emailGet'),
    '90': t('bType12'),
    '91': t('bType13')
}
/**
 * @description: 洗码记录类型
 */
export const WashTypeMap: any = () => {
    return {
        '-1': t('wash_type_map__1'),
        '9999': t('wash_type_map_9999'),
    }
}
/**
 * @description: 钱包类型
 */
export const WalletTypeMap: any = () => {
    return {
        '1': t('wallet_type_map_1'),
        '2': t('wallet_type_map_2'),
        '3_0': t('wallet_type_map_3_0'),
        '3_1': t('wallet_type_map_3_1'),
    }
}

/**
 * @description: 货币
 */
export const CurrencyMap: any = () => {
    return {
        '1': t('vietnamese_dong'),
        '0': t('rechargeRecord_page_allHb')
    }
}
/***
 *  @description: 快捷时间
 */
export const FasterDateMap: any = () => {
    return {
        '1': t('home_page_yesToday'),
        '2': t('home_page_today'),
        '3': t('home_page_thisWeek'),
        '4': t('home_page_month'),
    }
}


/**
 * @description: 平台
 */
export const PlatformMap: any = {
    "1": "BY88",
    "2": t("platform_map_2"),
    "3": t("platform_map_3"),
    "4": t("platform_map_4"),
    "5": t("platform_map_5"),
    "6": t("platform_map_6"),
    "7": t("platform_map_7"),
}
export const PlatformValueMap: any = {
    PG: 1,
    1: 'PG',
    JDB: 2,
    2: 'JDB',
    CQ9: 3,
    3: 'CQ9',
    JILI: 4,
    4: 'JILI',
    V8: 5,
    5: 'V8',
    FC: 6,
    6: 'FC',
    KS: 7,
    7: 'KS',
    KA: 8,
    8: 'KA',
    SEXY: 9,
    9: 'SEXY',
    EVO: 10,
    10: 'EVO',
    WS168: 11,
    11: 'WS168',
    DG: 12,
    12: 'DG',
    BG: 13,
    13: 'BG',
    SABA: 14,
    14: 'SABA',
    CMD368: 15,
    15: 'CMD368',
    IM: 16,
    16: 'IM',
    TCG: 17,
    17: 'TCG',
    PP: 18,
    18: 'PP',
    RICH88: 19,
    19: 'RICH88',
    SBO: 20,
    20: 'SBO',
    TP: 21,
    21: 'TP',
    PT: 22,
    22: 'PT',
    VR: 23,
    23: 'VR',
    WM: 24,
    24: 'WM',
    KINGMAKER: 25,
    25: 'KINGMAKER',
    DB: 26,
    26: 'DB',
    BNG: 27,
    27: 'BNG',
    MP: 28,
    28: 'MP',
    SA: 29,
    29: 'SA',
    MG: 30,
    30: 'mg'
};


export const ETransfer: any = {
    in: 'walletInfo_page_in',
    out: 'walletInfo_page_out'
};

export const EWallets: any = {
    zhenren: 'wallet_page_zhenren',
    sports: 'wallet_page_sports',
    esports: 'wallet_page_esports',
    chesscard: 'wallet_page_chesscard',
    lottery: 'wallet_page_lottery',
    electronic: 'wallet_page_electronic',
};

export const CenterWallet: any = 'wallet_page_central';

export const EAllWallets: any = { center: CenterWallet, ...EWallets };

